function extraTool(data, tool) {
    switch (tool.type) {
        case "receipt":
            layer.confirm('确定要'+tool.title+'吗？', function (index) {
                layer.load();
                $.ajax({
                    type: 'POST',
                    url: tool.url,
                    data: {id: data.id},
                    dataType: "json",
                    success: function (data) {
                        if (data.code == 1) {
                            notify.success(data.msg, 1500, function () {
                                location.reload();
                            });
                        } else {
                            notify.error(data.msg);
                        }
                    }
                });
                layer.closeAll();
            });
            break;
    }

}